package com.learn.acm.design.observer;

/**
 * @author zhongshitao
 * @date 2020/11/5 6:18 下午
 */
public class Editor {

    public EventManager eventManager;


    public Editor() {
        this.eventManager = new EventManager("save", "open");
    }

    public void openFile(String filePath) {
        eventManager.notify("open", filePath);
    }

    public void saveFile(String filePath) throws Exception {
        eventManager.notify("save", filePath);
    }
}
